<?php

namespace App\Controller;

use App\Common\Librarys\ApiResponse;
use App\Service\AsrService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Contract\ResponseInterface;
use Psr\Http\Message\ResponseInterface as Psr7ResponseInterface;

class AsrController extends AbstractController
{
//    /**
//     * 通过 `@Inject` 注解注入由 `@var` 注解声明的属性类型对象
//     * @Inject
//     * @var AsrService
//     */
//    private $service;

    public function index()
    {
        return 22;
//        $filePath = 'D:\phpStudy\WWW\aiad-composer\aiad-asr-demo\asr.wav';
//        return $this->apiResponse( $this->service->asr($filePath));

    }
}